<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.prime.com.tr/ui"
      xmlns:ui="http://java.sun.com/jsf/facelets">

	<h:head>
		<link href="#{request.contextPath}/resource/css/style.css" rel="stylesheet" type="text/css"/>
	</h:head>
	<div align="center"><img src="./images/logo_ibab.gif" /></div>
	<h:body>
		<h:form>
			<div class="DIVcentralizada">
			<p:panel header="Entre com o Usuário e Senha" style="height: 150px;width: 250px; vertical-align: middle;"> 
				<h:panelGrid columns="2" >
					<h:outputText value="Usuário: " />
					<p:inputText value="#{usuarioBean.usuario.usuario}" feedback="false"/>
					<h:outputText value="Senha: " />
		            <p:password value="#{usuarioBean.usuario.senha}" feedback="false" />
				</h:panelGrid>
				<div align="center">
					<p:commandButton value="Entrar" action="#{usuarioBean.autenticar}" ajax="false" update="messages" />
				</div>
				<br/>
		    </p:panel>
		    </div>
		</h:form>
	</h:body>
</html>